package com.bingxue.edu.management.system.model.resp;

import com.bingxue.edu.common.enums.CommonStatusEnum;
import com.bingxue.edu.common.enums.StorageTypeEnum;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * 存储配置信息
 *
 * @author panbo
 * @since 2024/07/22 23:33
 */
@Data
@Schema(description = "存储配置信息")
public class StorageResp {

    @Schema(description = "id")
    private String id;

    @Schema(description = "名称")
    private String name;

    @Schema(description = "编码")
    private String code;

    @Schema(description = "类型（1：兼容S3协议存储；2：本地存储）")
    private StorageTypeEnum type;

    @Schema(description = "Access Key（访问密钥）")
    private String accessKey;

    @Schema(description = "Secret Key（私有密钥）")
    private String secretKey;

    @Schema(description = "Endpoint（终端节点）")
    private String endpoint;

    @Schema(description = "桶名称")
    private String bucketName;

    @Schema(description = "域名")
    private String domain;

    @Schema(description = "描述")
    private String description;

    @Schema(description = "是否为默认存储")
    private Boolean defaultStorage;

    @Schema(description = "状态")
    private CommonStatusEnum status;

    @Schema(description = "排序号")
    private Integer sort;
}
